package com.zhuliwei.cloud.controller;

import com.zhuliwei.cloud.apis.PayFeignApi;
import com.zhuliwei.cloud.resp.ResultData;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author 朱力维
 * @time 2025/1/11 11:12
 **/
@RestController
public class OrderGateWayController
{
    @Resource
    PayFeignApi payFeignApi;

    @GetMapping(value = "/consumer/pay/gateway/get/{id}")
    public ResultData getById(@PathVariable("id") Integer id)
    {
        return payFeignApi.getById(id);
    }

    @GetMapping(value = "/consumer/pay/gateway/info")
    public ResultData getGatewayInfo()
    {
        return payFeignApi.getGatewayInfo();
    }
}


